﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReferralTracker.Data.Entities;
using ReferralTracker.Data.Contexts;

namespace ReferralTracker.Data.Repositories {
    public class UserDetailRepository : Repository<UserDetail> {

        public UserDetailRepository(IContext context)
            : base(context) {

        }

        public UserDetail FindByKey(int id) {
            return (from ud in _data
                    where ud.IdUser == id
                    select ud).SingleOrDefault();
        }

    }
}
